from setux.core.distro import Distro


class Void(Distro):
    Package = 'xbps'
    Service = 'runit'
    etcsvdir = '/etc/sv'
    runsvdir = '/etc/runit/runsvdir/default'
    pkgmap = dict(
        cron = 'cronie',
    )
    svcmap = dict(
        ssh = 'sshd',
        cron = 'crond',
    )

    @classmethod
    def release_name(cls, infos):
        name = infos['NAME']
        name = name.strip('"').capitalize()
        return name

